package com.giggle.restclient.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.client.HttpStatusCodeException;

/**
 * @author guozichen
 * @ClassName:
 * @Description: (签名异常)
 * @date 2020/11/12 20:18
 */
public class ApiSignatureException extends HttpStatusCodeException {
    private int reason;
    private static final long serialVersionUID = 1L;

    public ApiSignatureException(HttpStatus statusCode, String msg) {
        super(statusCode, msg);
    }

    public ApiSignatureException(HttpStatus statusCode, int reason, String msg) {
        super(statusCode, msg);
        this.reason = reason;
    }

    public int getReason() {
        return this.reason;
    }
}
